package com.hsoft.zhxy.app.xtgl_02_01.service;

import com.alibaba.fastjson.JSONObject;
import com.hsoft.zhxy.app.common.model.entity.XtcsglEntity;

public interface XtcsglService {

    /**
     * 查询单条数据
     * @param xtcsglEntity
     * @return
     */
    JSONObject findOne(XtcsglEntity xtcsglEntity);

    /**
     * 查询列表数据
     * @param xtcsglEntity
     * @return
     */
    JSONObject findList(XtcsglEntity xtcsglEntity);

    /**
     * 查询分页列表数据
     * @param xtcsglEntity
     * @param page
     * @param pageSize
     * @return
     */
    JSONObject findListByPage(XtcsglEntity xtcsglEntity, long page, long pageSize);

    /**
     * 新增
     * @param xtcsglEntity
     * @return
     */
    JSONObject add(XtcsglEntity xtcsglEntity);

    /**
     * 修改
     * @param xtcsglEntity
     * @return
     */
    JSONObject update(XtcsglEntity xtcsglEntity);

    /**
     * 删除
     * @param xtcsglEntity
     * @return
     */
    JSONObject delete(XtcsglEntity xtcsglEntity);

}
